package com.woniuxy.car.commodity.service.core.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 赠品表
 * </p>
 *
 * @author awz
 * @since 2022-03-01
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("kc_gift")
@ApiModel(value = "Gift对象", description = "赠品表")
public class Gift implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("赠品id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("赠品说明")
    private String explainGoods;

    @ApiModelProperty("商品id")
    private Integer commodityId;

    @TableField(select = false)
    @TableLogic
    @ApiModelProperty("是否删除(0未删除 1已删除)")
    private Integer isDelete;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;

}
